<html>
<head><meta charset="utf-8"><title>Accessing ra_hir::ty::primitive::* ? · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Accessing.20ra_hir.3A.3Aty.3A.3Aprimitive.3A.3A*.20.3F.html">Accessing ra_hir::ty::primitive::* ?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="180399029"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Accessing%20ra_hir%3A%3Aty%3A%3Aprimitive%3A%3A%2A%20%3F/near/180399029" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eonil <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Accessing.20ra_hir.3A.3Aty.3A.3Aprimitive.3A.3A*.20.3F.html#180399029">(Nov 11 2019 at 05:33)</a>:</h4>
<p>Hello folks.</p>
<p>I am trying to use RA to scan data schema and stuck on <code>UncertainIntTy</code> type as it doesn't seem to be exposed publicly. Now I have <code>ra_hir::Ty</code> value, but to get precise integer type, it seems I need to access types in <code>ra_hir::ty::primitive</code> module. How can I access these types? Or is there other way to extract primitive type information?</p>



<a name="180400817"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Accessing%20ra_hir%3A%3Aty%3A%3Aprimitive%3A%3A%2A%20%3F/near/180400817" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Accessing.20ra_hir.3A.3Aty.3A.3Aprimitive.3A.3A*.20.3F.html#180400817">(Nov 11 2019 at 06:22)</a>:</h4>
<p><span class="user-mention" data-user-id="246393">@eonil</span> made them public in <a href="https://github.com/rust-analyzer/rust-analyzer/pull/2204" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/pull/2204">https://github.com/rust-analyzer/rust-analyzer/pull/2204#</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>